Home

Computer science

'

GRADE CALCULATOR APP
Sarah is a teacher at a local high school who wants to simplify the process of calculating and managing students\' results. Currently, she spends a significant amount of time manually calculating grades, averaging scores, and generating reports for each student. This manual process not only consumes a lot of her time but also increases the chances of errors. Sarah envisions an Android app that can automate the process of calculating students\' results, allowing her to focus more on teaching rather than administrative tasks. The app should be user-friendly, allowing Sarah to input students\' scores easily and generate comprehensive reports effortlessly.
The app should include fields for the student\'s name and scores for three subjects: Mathematics, Science, and English. There should be a button to calculate the average score and grade for the student, and a Text View to display the calculated average score and grade. The layout should be visually appealing and easy to navigate. The app must retrieve the input values (student\'s name and scores for the three subjects) \ufefffrom the XML layout and calculate the average score of the student based on the scores entered. It should then determine the grade for the student based on the average score as follows: A grade of 90% \ufeffor above receives an "A", \ufeffa grade of 80% \ufeffto 89% \ufeffreceives a "B", \ufeffa grade of 70% \ufeffto 79% \ufeffreceives a "C", \ufeffand a grade below 70% \ufeffreceives an "F". \ufeffThe calculated average score and grade should be displayed in the designated Text View. Additionally, the app should handle edge cases gracefully, such as invalid input or empty fields, ensuring a smooth user experience.
\ufeff
\ufeff
\ufeff
\ufeff
Question 1
As a software developer, you have been tasked with developing an Android app to help Sarah with her requirements. The app should consist of a Minimum of one (1) \ufeffXML layout file and one (1) \ufeffJava file. Below are the sample outputs.Grade Calculator App
Lerato
88
87
90
Student: Lerato
Average Score: 88.33

Grade: B


'

Answer